﻿using MediatR;
using RearLivestock.Common.Dtos;
using System.ComponentModel.DataAnnotations;

namespace RearLivestock.Beginning.Api.Application.Command.Farrowing
{
    public class UpdateFarrowingsCommand : IRequest<Result>
    {
        /// <summary>
        /// 母猪分娩id
        /// </summary>
        public int FarrowingId { get; set; }
        /// <summary>
        /// 基本信息Id(耳号)
        /// </summary>
        public int BasicInforId { get; set; }
        /// <summary>
        /// 分娩日期
        /// </summary>
        public DateTime FarrowingDate { get; set; } = DateTime.Now;
        /// <summary>
        /// 妊娠天数
        /// </summary>
        public int GestationNum { get; set; }
        /// <summary>
        /// 分娩难易
        /// </summary>
        public int DifficultieId { get; set; }
        /// <summary>
        /// 肥猪批次
        /// </summary>
        public int BatchId { get; set; }
        /// <summary>
        /// 母性
        /// </summary>
        public int MaternalId { get; set; }
        /// <summary>
        /// 泌乳
        /// </summary>
        public string Lactation { get; set; }
        /// <summary>
        /// 乳房炎
        /// </summary>
        public string Mastitis { get; set; }
        /// <summary>
        /// 窝号
        /// </summary>
        public string NestNumber { get; set; }
        /// <summary>
        /// 活猪数
        /// </summary>
        public int LivePigNum { get; set; }
        /// <summary>
        /// 窝总重(公斤)
        /// </summary>
        public int NestWeight { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public bool Gender { get; set; }
        /// <summary>
        /// 栋舍id
        /// </summary>
        public int BedroomId { get; set; }
        /// <summary>
        /// 栏位id
        /// </summary>
        public int FieldId { get; set; }
        /// <summary>
        /// 转入栋舍
        /// </summary>
        public string TurnBuilding { get; set; }
        /// <summary>
        /// 转入栏位
        /// </summary>
        public string TurnColumn { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsFarrowings { get; set; }
    }
}
